<?php

 /**
  * @package JooS
  * @subpackage Syntax_PHPackager
  */

  require_once "JooS/Syntax/Complex/Transition.php";

 /**
  * List ::= [ Expression, { ',', Expression } ];
  */
  class JooS_Syntax_PHPackager_List extends JooS_Syntax_Complex_Transition {
    /**
     * @return JooS_Syntax_Complex_Repetition
     */
    protected function createRule() {
      return $this->createSyntax("Complex_Repetition", $this->createSyntax("Complex_Concatenate", array(
        $this->createSyntax("PHPackager_Expression"), 
        $this->createSyntax("Complex_Repetition", $this->createSyntax("Complex_Concatenate", array(
          $this->createSyntax("Common_Whitespace"), 
          $this->createSyntax("Simple_Symbol", ","), 
          $this->createSyntax("Common_Whitespace"), 
          $this->createSyntax("PHPackager_Expression"), 
        )))
      )));
    }
  }
